package com.lagou.transaction;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * 事务
 * @author zhengzc
 * @version 1.0.0
 * @date 2020/2/24 19:30
 */
public interface Transaction {
    Connection getConnection() throws SQLException;

    void commit() throws SQLException;

    void rollback() throws SQLException;

    void close() throws SQLException;
}
